kbuild: Make the toolchain variables easily overwritable
authorBastian Blank <waldi@debian.org>
Sun, 22 Feb 2009 14:39:35 +0000 (15:39 +0100)
committerRaspbian forward porter <root@raspbian.org>
Tue, 23 Jul 2024 19:44:04 +0000 (19:44 +0000)
commitee5b0a450c33f8aa9950bd3c00e40ea83f820ebe
tree6e7ba55763b4ad8cc62dc33b508918c57d41a86f
parentd8a431a975f6b734f07972b8b36c402aa8192e38
kbuild: Make the toolchain variables easily overwritable

Forwarded: not-needed

Allow make variables to be overridden for each flavour by a file in
the build tree, .kernelvariables.

We currently use this for ARCH, KERNELRELEASE, CC, and in some cases
also CROSS_COMPILE, KCFLAGS.

This file can only be read after we establish the build tree, and all
use of $(ARCH) needs to be moved after this.

[bwh: Updated for 5.3: include .kernelvariables from current directory
 rather than using undefined $(obj).]

Gbp-Pq: Topic debian
Gbp-Pq: Name kernelvariables.patch
Makefile